import Vue from 'vue'
import App from './App'

import store from './store'

// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)

// import uView from 'uview-ui'
// Vue.use(uView)

//导入自己封装的类库
import utilAsync from './util/util.async.js'
import utilBase from './util/util.base.js'
import utilAlert from './util/util.alert.js'
import utilRegex from './util/util.regex.js'
import utilLogin from './util/util.login.js'
import utilNav from './util/util.nav.js'
import utilPay from './util/util.pay.js'
import utilTools from './util/util.tools.js'
import utilRequest from './util/util.request.js'
import utilXcgj from './util/util.xcgj.js'
import { EngineV2 } from './util/EngineV2.js'
 import Ezvo from "./util/EZVo.js"

// #ifdef H5
import utilWeixin from './util/util.weixin.js'
// #endif

// 将封装库引入Vue原型链
Vue.prototype.utilAsync = utilAsync 
Vue.prototype.utilBase = utilBase
Vue.prototype.utilAlert = utilAlert
Vue.prototype.utilRegex = utilRegex
Vue.prototype.utilLogin = utilLogin
Vue.prototype.utilNav = utilNav
Vue.prototype.utilPay = utilPay
Vue.prototype.utilTools = utilTools
Vue.prototype.utilRequest = utilRequest
Vue.prototype.utilXcgj = utilXcgj
Vue.prototype.$EngineV2 = EngineV2
Vue.prototype.$Ezvo = Ezvo

// #ifdef H5
Vue.prototype.utilWeixin = utilWeixin
// #endif


// 全局变量
// 设置H5分享参数全局变量
Vue.prototype.$title='分享标题'
Vue.prototype.$desc = '分享描述'
Vue.prototype.$shareImage = '图片路径'
// 小程序分享分享设置
// #ifdef MP
// import share from './util/util.share.js'
// Vue.mixin(share)

// #endif

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
	store,
	...App,
	
})
app.$mount()
